x86: correct CPUID output for out of bounds input
authorJan Beulich <jbeulich@suse.com>
Tue, 6 Sep 2016 08:19:18 +0000 (10:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Sep 2016 08:19:18 +0000 (10:19 +0200)
commitb0c0e695e05dc52212b8fdbf8d973be353af7b6a
treeb6c93c0eb8a20da73410552803d7000051cce2c4
parent3adef8e3270f5a524dc31c90db6ca389df61e1f0
x86: correct CPUID output for out of bounds input

Another place where we should try to behave sufficiently close to how
real hardware does; see the code comments.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c